//
//  ZJSCNoteModel.m
//  LovingPartyBuilding
//
//  Created by ZJ on 2017/5/11.
//  Copyright © 2017年 刘应平. All rights reserved.
//

#import "ZJSCNoteModel.h"
#import "NSString+QT.h"
@implementation ZJSCNoteModel


- (NSString *)description{
    return [self yy_modelDescription];
}

- (CGFloat)cellHeight{
    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, [UIScreen zj_screenWith] - 24 * [UIScreen zj_screenWScale], 100)];
    label.lineSpace = 5 * [UIScreen zj_screenHScale];
    label.characterSpace = 2 * [UIScreen zj_screenWScale];
    label.font = [UIFont titleTextFont];
    label.numberOfLines = 0;
    label.text = self.NOTE_CONTENT;
    
    CGFloat titleHeight = [label getLableSizeWithMaxWidth:label.width].height;
    
//    CGFloat titleHeight = [NSString zj_getTextSpaceHeightFromText:self.NOTE_CONTENT font:[UIFont titleTextFont] width:[UIScreen zj_screenWith] - 24 * [UIScreen zj_screenWScale] Space:5 * [UIScreen zj_screenHScale] numberOfLines:0];
    
    return (16 + 7.5 + 43 + 14) * [UIScreen zj_textFontScale] + 1 + titleHeight +[NSString heightWithTextFontSize:12 * [UIScreen zj_textFontScale]];
}

@end
